package xyz.chaobei.feature.utils;

import xyz.chaobei.feature.entity.Person;

import java.util.function.Supplier;

/**
 * @copyright (C), 2015-2020
 * @fileName: SuppilerTest
 * @author: MRC
 * @date: 2021/2/3 23:20
 * @description:
 */
public class SupplierTest {

    public static void main(String[] args) {
        // 只接受无参数构造器
        Supplier<Person> personGetter = Person::new;
        System.out.println(personGetter.get().toString());
    }

}
